/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package neuralmusic.brain.module;

/**
 *
 * @author pjl
 */
public class Point {
    public float x;
    public float y;
    public float z;

    public Point(float x, float y) {
        this.x=x;
        this.y=y;
    }

    static Point mid(Point a,Point b) {
        return new Point((a.x+b.x)/2, (a.y +b.y)/2);
    }

    Point move(Point d) {
        x+=d.x;
        y+=d.y;
        z+=d.z;
        return this;
    }

    public Point clone() {
    	return new Point(x,y);
    }

}
